package com.atguigu.system.service;


import com.atguigu.model.system.SysUser;
import com.atguigu.model.vo.SysUserQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author yqr
 * @since 2023-06-06
 */
public interface SysUserService extends IService<SysUser> {

    //用户信息分页展示
    IPage<SysUser> getByConditionAndPage(Page<SysUser> pageInfo, SysUserQueryVo sysUserQueryVo);

    //更改用户状态
    void updateStatus(String id, Integer status);

    //根据用户名查询
    SysUser getByName(String username);

    //查询1用户基本信息和权限信息
    Map<String, Object> getInfo(String username);
}
